﻿using Caliburn.Micro;
using SD.Infrastructure.WPF.Caliburn.Aspects;
using System;
using System.Collections.ObjectModel;

namespace SlamDunk.MES.Presentation.Models.NotifyModels
{
    /// <summary>
    /// 作业计划设备使用台时
    /// </summary>
    public class EquipmentSummaryNm : PropertyChangedBase
    {
        #region 设备Id —— Guid EquipmentId
        /// <summary>
        /// 设备Id
        /// </summary>
        [DependencyProperty]
        public Guid EquipmentId { get; set; }
        #endregion

        #region 设备编号 —— string EquipmentNo
        /// <summary>
        /// 设备编号
        /// </summary>
        [DependencyProperty]
        public string EquipmentNo { get; set; }
        #endregion

        #region 设备名称 —— string EquipmentName
        /// <summary>
        /// 设备名称
        /// </summary>
        [DependencyProperty]
        public string EquipmentName { get; set; }
        #endregion

        #region 台时 —— decimal Machinehour
        /// <summary>
        /// 台时
        /// </summary>
        [DependencyProperty]
        public decimal Machinehour { get; set; }
        #endregion

        #region 开始时间 —— DateTime PlanStartTime
        /// <summary>
        /// 开始时间
        /// </summary>
        [DependencyProperty]
        public DateTime? PlanStartTime { get; set; }
        #endregion

        #region 结束时间 —— DateTime PlanEndTime
        /// <summary>
        /// 结束时间
        /// </summary>
        [DependencyProperty]
        public DateTime? PlanEndTime { get; set; }
        #endregion

        #region 作业计划Id —— Guid ExecutionPlanId
        /// <summary>
        /// 作业计划Id
        /// </summary>
        [DependencyProperty]
        public Guid ExecutionPlanId { get; set; }
        #endregion

        #region 作业计划列表 —— ObservableCollection<EquipmentSummaryDetailNm> EquipmentSummaryDetails
        /// <summary>
        /// 作业计划列表
        /// </summary>
        [DependencyProperty]
        public ObservableCollection<EquipmentSummaryDetailNm> EquipmentSummaryDetails { get; set; }
        #endregion

        #region 工厂模型Id — Guid FacilityId
        /// <summary>
        /// 工厂模型Id
        /// </summary>
        [DependencyProperty]
        public Guid? FacilityId { get; set; }
        #endregion

        #region 工厂模型名称 —— string FacilityName
        /// <summary>
        /// 工厂模型名称
        /// </summary>
        [DependencyProperty]
        public string FacilityName { get; set; }
        #endregion
    }
}
